/**
 * 
 */
package com.mc.date;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author w.weizhen
 *
 */
public class LocalDateTest {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
//		LocalDate date = LocalDate.now();
//        date = date.plusYears(10);
//        String format = "yyyy-MM-dd'T'HH:mm:ss";
//        System.out.println(date.format(DateTimeFormatter.ofPattern(format)));
		
        
        LocalDateTime dateTime = LocalDateTime.now();
        dateTime.plusYears(10);
        String format = "yyyy-MM-dd'T'HH:mm:ss";
        System.out.println(dateTime.format(DateTimeFormatter.ofPattern(format)));
        
        
	}
	
}